package com.liangsui.cmall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.liangsui.cmall.product.vo.AttrGroupRelationVo;
import com.liangsui.cmall.product.vo.Catelog2Vo;
import com.liangsui.common.utils.PageUtils;
import com.liangsui.cmall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author zhangjiawei
 * @email 1533167396@qq.com
 * @date 2022-08-03 22:59:38
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMenusByIds(List<Long> asList);

    /**
     * 找到catelogId的完整路径【父/子/孙】
     * @param catelogId
     * @return
     */
    Long[] findCatelogPath(Long catelogId);

    void updateCasCade(CategoryEntity category);

    List<CategoryEntity> getLevel1Categorys();

    Map<String, List<Catelog2Vo>> getCatalogJson();
}

